import django
import os
import json


class Config:
    ROOT = '/home/lrf/shark1'
    TEMPLATE = os.path.join(ROOT, 'templates')
    TEMP_SHARK = os.path.join(TEMPLATE, 'shark')
    DJANGO_VER = '{0}.{1}.{2}'.format(django.VERSION[0], django.VERSION[1], django.VERSION[2])
    TEMP_CSMONITOR = os.path.join(TEMPLATE, 'csmonitor')
    TEMP_THECONOMIST = os.path.join(TEMPLATE, 'theconomist')
    ECONOMIST_PRINTEDITION = os.path.join(TEMP_THECONOMIST, 'printedition')
    AUTH = os.path.join(ROOT, 'auth')
    WEBDAV_AUTH = os.path.join(AUTH, 'webdav')
    CRU_INFO = os.path.join(ROOT, 'crucial_info.json')
    cru_info = json.load(open(CRU_INFO, mode='r'))